package org.dtrd.modules.food.entity.po;

import java.util.ArrayList;
import java.util.List;

public class DtrdExtEmsYwFoodJoinCookbooksExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DtrdExtEmsYwFoodJoinCookbooksExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDataIdIsNull() {
            addCriterion("data_id is null");
            return (Criteria) this;
        }

        public Criteria andDataIdIsNotNull() {
            addCriterion("data_id is not null");
            return (Criteria) this;
        }

        public Criteria andDataIdEqualTo(Integer value) {
            addCriterion("data_id =", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotEqualTo(Integer value) {
            addCriterion("data_id <>", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdGreaterThan(Integer value) {
            addCriterion("data_id >", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("data_id >=", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLessThan(Integer value) {
            addCriterion("data_id <", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLessThanOrEqualTo(Integer value) {
            addCriterion("data_id <=", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdIn(List<Integer> values) {
            addCriterion("data_id in", values, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotIn(List<Integer> values) {
            addCriterion("data_id not in", values, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdBetween(Integer value1, Integer value2) {
            addCriterion("data_id between", value1, value2, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotBetween(Integer value1, Integer value2) {
            addCriterion("data_id not between", value1, value2, "dataId");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNull() {
            addCriterion("is_del is null");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNotNull() {
            addCriterion("is_del is not null");
            return (Criteria) this;
        }

        public Criteria andIsDelEqualTo(Integer value) {
            addCriterion("is_del =", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotEqualTo(Integer value) {
            addCriterion("is_del <>", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThan(Integer value) {
            addCriterion("is_del >", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_del >=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThan(Integer value) {
            addCriterion("is_del <", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThanOrEqualTo(Integer value) {
            addCriterion("is_del <=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelIn(List<Integer> values) {
            addCriterion("is_del in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotIn(List<Integer> values) {
            addCriterion("is_del not in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelBetween(Integer value1, Integer value2) {
            addCriterion("is_del between", value1, value2, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotBetween(Integer value1, Integer value2) {
            addCriterion("is_del not between", value1, value2, "isDel");
            return (Criteria) this;
        }

        public Criteria andCookIdIsNull() {
            addCriterion("cook_id is null");
            return (Criteria) this;
        }

        public Criteria andCookIdIsNotNull() {
            addCriterion("cook_id is not null");
            return (Criteria) this;
        }

        public Criteria andCookIdEqualTo(Integer value) {
            addCriterion("cook_id =", value, "cookId");
            return (Criteria) this;
        }

        public Criteria andCookIdNotEqualTo(Integer value) {
            addCriterion("cook_id <>", value, "cookId");
            return (Criteria) this;
        }

        public Criteria andCookIdGreaterThan(Integer value) {
            addCriterion("cook_id >", value, "cookId");
            return (Criteria) this;
        }

        public Criteria andCookIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("cook_id >=", value, "cookId");
            return (Criteria) this;
        }

        public Criteria andCookIdLessThan(Integer value) {
            addCriterion("cook_id <", value, "cookId");
            return (Criteria) this;
        }

        public Criteria andCookIdLessThanOrEqualTo(Integer value) {
            addCriterion("cook_id <=", value, "cookId");
            return (Criteria) this;
        }

        public Criteria andCookIdIn(List<Integer> values) {
            addCriterion("cook_id in", values, "cookId");
            return (Criteria) this;
        }

        public Criteria andCookIdNotIn(List<Integer> values) {
            addCriterion("cook_id not in", values, "cookId");
            return (Criteria) this;
        }

        public Criteria andCookIdBetween(Integer value1, Integer value2) {
            addCriterion("cook_id between", value1, value2, "cookId");
            return (Criteria) this;
        }

        public Criteria andCookIdNotBetween(Integer value1, Integer value2) {
            addCriterion("cook_id not between", value1, value2, "cookId");
            return (Criteria) this;
        }

        public Criteria andFoodIdIsNull() {
            addCriterion("food_id is null");
            return (Criteria) this;
        }

        public Criteria andFoodIdIsNotNull() {
            addCriterion("food_id is not null");
            return (Criteria) this;
        }

        public Criteria andFoodIdEqualTo(Integer value) {
            addCriterion("food_id =", value, "foodId");
            return (Criteria) this;
        }

        public Criteria andFoodIdNotEqualTo(Integer value) {
            addCriterion("food_id <>", value, "foodId");
            return (Criteria) this;
        }

        public Criteria andFoodIdGreaterThan(Integer value) {
            addCriterion("food_id >", value, "foodId");
            return (Criteria) this;
        }

        public Criteria andFoodIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("food_id >=", value, "foodId");
            return (Criteria) this;
        }

        public Criteria andFoodIdLessThan(Integer value) {
            addCriterion("food_id <", value, "foodId");
            return (Criteria) this;
        }

        public Criteria andFoodIdLessThanOrEqualTo(Integer value) {
            addCriterion("food_id <=", value, "foodId");
            return (Criteria) this;
        }

        public Criteria andFoodIdIn(List<Integer> values) {
            addCriterion("food_id in", values, "foodId");
            return (Criteria) this;
        }

        public Criteria andFoodIdNotIn(List<Integer> values) {
            addCriterion("food_id not in", values, "foodId");
            return (Criteria) this;
        }

        public Criteria andFoodIdBetween(Integer value1, Integer value2) {
            addCriterion("food_id between", value1, value2, "foodId");
            return (Criteria) this;
        }

        public Criteria andFoodIdNotBetween(Integer value1, Integer value2) {
            addCriterion("food_id not between", value1, value2, "foodId");
            return (Criteria) this;
        }

        public Criteria andFoodCategoryidIsNull() {
            addCriterion("food_categoryId is null");
            return (Criteria) this;
        }

        public Criteria andFoodCategoryidIsNotNull() {
            addCriterion("food_categoryId is not null");
            return (Criteria) this;
        }

        public Criteria andFoodCategoryidEqualTo(Integer value) {
            addCriterion("food_categoryId =", value, "foodCategoryid");
            return (Criteria) this;
        }

        public Criteria andFoodCategoryidNotEqualTo(Integer value) {
            addCriterion("food_categoryId <>", value, "foodCategoryid");
            return (Criteria) this;
        }

        public Criteria andFoodCategoryidGreaterThan(Integer value) {
            addCriterion("food_categoryId >", value, "foodCategoryid");
            return (Criteria) this;
        }

        public Criteria andFoodCategoryidGreaterThanOrEqualTo(Integer value) {
            addCriterion("food_categoryId >=", value, "foodCategoryid");
            return (Criteria) this;
        }

        public Criteria andFoodCategoryidLessThan(Integer value) {
            addCriterion("food_categoryId <", value, "foodCategoryid");
            return (Criteria) this;
        }

        public Criteria andFoodCategoryidLessThanOrEqualTo(Integer value) {
            addCriterion("food_categoryId <=", value, "foodCategoryid");
            return (Criteria) this;
        }

        public Criteria andFoodCategoryidIn(List<Integer> values) {
            addCriterion("food_categoryId in", values, "foodCategoryid");
            return (Criteria) this;
        }

        public Criteria andFoodCategoryidNotIn(List<Integer> values) {
            addCriterion("food_categoryId not in", values, "foodCategoryid");
            return (Criteria) this;
        }

        public Criteria andFoodCategoryidBetween(Integer value1, Integer value2) {
            addCriterion("food_categoryId between", value1, value2, "foodCategoryid");
            return (Criteria) this;
        }

        public Criteria andFoodCategoryidNotBetween(Integer value1, Integer value2) {
            addCriterion("food_categoryId not between", value1, value2, "foodCategoryid");
            return (Criteria) this;
        }

        public Criteria andFoodUseAmountIsNull() {
            addCriterion("food_use_amount is null");
            return (Criteria) this;
        }

        public Criteria andFoodUseAmountIsNotNull() {
            addCriterion("food_use_amount is not null");
            return (Criteria) this;
        }

        public Criteria andFoodUseAmountEqualTo(Float value) {
            addCriterion("food_use_amount =", value, "foodUseAmount");
            return (Criteria) this;
        }

        public Criteria andFoodUseAmountNotEqualTo(Float value) {
            addCriterion("food_use_amount <>", value, "foodUseAmount");
            return (Criteria) this;
        }

        public Criteria andFoodUseAmountGreaterThan(Float value) {
            addCriterion("food_use_amount >", value, "foodUseAmount");
            return (Criteria) this;
        }

        public Criteria andFoodUseAmountGreaterThanOrEqualTo(Float value) {
            addCriterion("food_use_amount >=", value, "foodUseAmount");
            return (Criteria) this;
        }

        public Criteria andFoodUseAmountLessThan(Float value) {
            addCriterion("food_use_amount <", value, "foodUseAmount");
            return (Criteria) this;
        }

        public Criteria andFoodUseAmountLessThanOrEqualTo(Float value) {
            addCriterion("food_use_amount <=", value, "foodUseAmount");
            return (Criteria) this;
        }

        public Criteria andFoodUseAmountIn(List<Float> values) {
            addCriterion("food_use_amount in", values, "foodUseAmount");
            return (Criteria) this;
        }

        public Criteria andFoodUseAmountNotIn(List<Float> values) {
            addCriterion("food_use_amount not in", values, "foodUseAmount");
            return (Criteria) this;
        }

        public Criteria andFoodUseAmountBetween(Float value1, Float value2) {
            addCriterion("food_use_amount between", value1, value2, "foodUseAmount");
            return (Criteria) this;
        }

        public Criteria andFoodUseAmountNotBetween(Float value1, Float value2) {
            addCriterion("food_use_amount not between", value1, value2, "foodUseAmount");
            return (Criteria) this;
        }

        public Criteria andFoodUnitIsNull() {
            addCriterion("food_unit is null");
            return (Criteria) this;
        }

        public Criteria andFoodUnitIsNotNull() {
            addCriterion("food_unit is not null");
            return (Criteria) this;
        }

        public Criteria andFoodUnitEqualTo(String value) {
            addCriterion("food_unit =", value, "foodUnit");
            return (Criteria) this;
        }

        public Criteria andFoodUnitNotEqualTo(String value) {
            addCriterion("food_unit <>", value, "foodUnit");
            return (Criteria) this;
        }

        public Criteria andFoodUnitGreaterThan(String value) {
            addCriterion("food_unit >", value, "foodUnit");
            return (Criteria) this;
        }

        public Criteria andFoodUnitGreaterThanOrEqualTo(String value) {
            addCriterion("food_unit >=", value, "foodUnit");
            return (Criteria) this;
        }

        public Criteria andFoodUnitLessThan(String value) {
            addCriterion("food_unit <", value, "foodUnit");
            return (Criteria) this;
        }

        public Criteria andFoodUnitLessThanOrEqualTo(String value) {
            addCriterion("food_unit <=", value, "foodUnit");
            return (Criteria) this;
        }

        public Criteria andFoodUnitLike(String value) {
            addCriterion("food_unit like", value, "foodUnit");
            return (Criteria) this;
        }

        public Criteria andFoodUnitNotLike(String value) {
            addCriterion("food_unit not like", value, "foodUnit");
            return (Criteria) this;
        }

        public Criteria andFoodUnitIn(List<String> values) {
            addCriterion("food_unit in", values, "foodUnit");
            return (Criteria) this;
        }

        public Criteria andFoodUnitNotIn(List<String> values) {
            addCriterion("food_unit not in", values, "foodUnit");
            return (Criteria) this;
        }

        public Criteria andFoodUnitBetween(String value1, String value2) {
            addCriterion("food_unit between", value1, value2, "foodUnit");
            return (Criteria) this;
        }

        public Criteria andFoodUnitNotBetween(String value1, String value2) {
            addCriterion("food_unit not between", value1, value2, "foodUnit");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}